tools: cleanup domain save switch_qemu_logdirty callback
authorIan Campbell <ian.campbell@citrix.com>
Thu, 21 Oct 2010 17:46:32 +0000 (18:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 21 Oct 2010 17:46:32 +0000 (18:46 +0100)
commita050657a54f734d6ed809072f9c1329d8324ee67
treeb253477d9ded8728a0722ccc31da7c76a56f2836
parent49fa0e868f1e3748a25c60cf2a36b5c40a135b83
tools: cleanup domain save switch_qemu_logdirty callback

Move the function into struct save_callbacks with the others and add
the void *closure to the callback arguments.

Add and propagate an error return code from the callback.

Use this in libxl to pass the save context to
libxl__domain_suspend_common_switch_qemu_logdirty allowing us to reuse
the parent's xenstore handle, gc context etc.

Also add an apparently missing libxl__free_all to
libxl__domain_suspend_common.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/ia64/xc_ia64_linux_save.c
tools/libxc/xc_domain_save.c
tools/libxc/xenguest.h
tools/libxl/libxl_dom.c
tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
tools/xcutils/xc_save.c